// src.web.js

// 模块依赖
var express = require('express');
var router = express.Router();
var servies = require('./services/index');
var log = require('log4js').getLogger("web");

router.get('/',function(req,res,next){
    log.info("活动页面");
    var id = req.originalUrl.split("/")[2].split('.')[0];
    req.query._id = id;
    servies.mobileh5QueryById(req,res, function(err, result){
        res.render('web/activity',{result: JSON.stringify(result)});
    });
});

module.exports = router;